<?php
include "CommentRepository.php";
include "UserRepository.php";
require_once "..\Entities\User.php";
require_once "..\Entities\Comentario.php";

$repository = new UserRepository();
$repository->GetUserFriends(2);

/*$repository = new CommentRepository();
 $coment = new Comentario();

$coment->SetFecha('2013-05-27 00:00:00');
$coment->SetTexto('mi primer comentario desde php');
//$coment->SetUrl('');
$coment->SetCodComentarioPadre(0);


$repository->InsertarComentario(1,$coment);*/



/*$repository = new UserRepository();
 $entityuser = new User();

$entityuser->SetUserName('lolita');
$entityuser->SetPassword('lolita');
$entityuser->SetName('Lola');
$entityuser->SetLastName('Flores');
$entityuser->SetEmail('flores@yahoo.com');
$entityuser->SetBirthday('1965-05-13');
$entityuser->SetGender('F');
$entityuser->SetMobilePhone('699000998');
$entityuser->SetStartDate('2013-05-27');
$entityuser->SetEndDate('9999-12-31');
//$entityuser->SetTimeStamp('2013-05-27 20:40:00');
$entityuser->SetAvatar('mifotomifotomifoto');

print_r($entityuser);
$user = $repository->InsertUser($entityuser);*/

//$user = $repository->DeleteUserFriend(2,3);




/*echo "hola";

$repository = new UserRepository();
$user = $repository->GetUserForLogin("mayte", "mayte");

print_r($user);
try
{
$user = $repository->GetUserForLogin("jose", "jose");
print_r($user);
}
catch (Exception $ex)
{
echo $ex->getMessage();

}

try
{
$user = $repository->GetUserForLogin("angel", "xxxxxxx");
print_r($user);

}
catch (Exception $ex)
{
echo $ex->getMessage();
}*/
?>